{% load static %}
{% csrf_token %}
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>AdminLTE 2 | Log in</title>
  <!-- Tell the browser to be responsive to screen width -->
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  <!-- Bootstrap 3.3.6 -->
    <link rel="stylesheet" href="{% static 'bootstrap/css/bootstrap.min.css' %}"/>

  <!-- Font Awesome -->
    <link rel="stylesheet" href="{% static 'dist/css/font-awesome.min.css' %}"/>

  <!-- Ionicons -->
     <link rel="stylesheet" href="{% static 'dist/css/ionicons.min.css' %}"/>
  <!-- Theme style -->
    <link rel="stylesheet" href="{% static 'dist/css/AdminLTE.min.css' %}"/>
  <!-- iCheck -->
    <link rel="stylesheet" href="{% static 'dist/css/blue.css' %}"/>

  <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  <!--[if lt IE 9]>
  <script src="../../dist/js/html5shiv.min.js"></script>
  <script src="../../dist/js/respond.min.js"></script>
  <![endif]-->
</head>
<body class="hold-transition login-page">
<div class="login-box">
  <div class="login-logo">
    <a href="http://www.xjau.edu.cn/"><b>闽南</b>师范大学</a>
  </div>
  <!-- /.login-logo -->
  <div class="login-box-body">
    <p class="login-box-msg">{{ error }}</p>

    <form method="post" class="am-form" action="../">
        {% csrf_token %}
{#        <div class="form-group has-feedback">#}
{##}
{#            <input type="radio" name="type" id ="student" value="1"><label for="student">老师</label>#}
{#            <input type="radio" name="type" id="teacher" value="0"><label for="teacher">管理员</label>#}
{#        </div>#}
        <div class="form-group has-feedback">
            <input type="text" name="user_name" class="form-control" placeholder="账号">
            <span class="glyphicon glyphicon-envelope form-control-feedback"></span>
        </div>
        <div class="form-group has-feedback">
            <input type="password" name="pwd" class="form-control" placeholder="密码">
            <span class="glyphicon glyphicon-lock form-control-feedback"></span>
        </div>
      <div class="row">
        <div class="col-xs-6">
            <a href="register"><button type="button" class="btn btn-primary btn-block btn-flat">注册</button></a>
        </div>
        <!-- /.col -->
        <div class="col-xs-6">
          <button type="submit" class="btn btn-primary btn-block btn-flat">登陆</button>
        </div>
        <!-- /.col -->
      </div>
    </form>
    <!-- /.social-auth-links -->


  </div>
  <!-- /.login-box-body -->
</div>
<!-- /.login-box -->

<!-- jQuery 2.2.3 -->
<script src="{% static 'js/dist/jquery-2.2.3.min.js' %}"></script>
<!-- Bootstrap 3.3.6 -->
<script src="{% static 'js/dist/bootstrap.min.js' %}"></script>

<!-- iCheck -->
<script src="{% static 'js/dist/icheck.min.js' %}"></script>
<script>
  $(function () {
    $('input').iCheck({
      checkboxClass: 'icheckbox_square-blue',
      radioClass: 'iradio_square-blue',
      increaseArea: '20%' // optional
    });
  });
</script>
</body>
</html>
